const path = require('path')

// F:\code-210\20230915\a\b

// cd ./a/b/c/d ->F:\code-210\20230915\a\b\c\d
// cd ../../ -> F:\code-210\20230915\a\b
// cd ./demo -> F:\code-210\20230915\a\b\demo
// cd ../ -> F:\code-210\2```````0230915\a\b
const p1 = path.resolve('./a/b/c/d','../../','./demo','../');

console.log(p1);